#ifndef SIMPLEHANDLER_H
#define SIMPLEHANDLER_H
#include <QXmlDefaultHandler>


class SimpleHandler : public QXmlDefaultHandler
{
public:
  SimpleHandler( QString tag );
  SimpleHandler( QString tag, bool other );

  bool startElement(const QString &namespaceURI, const QString &localName,
                    const QString &qName, const QXmlAttributes &attributes);
  bool   endElement(const QString &namespaceURI, const QString &localName,
                    const QString &qName, const QXmlAttributes &attributes);
  bool   characters(const QString &ch);

  QString content,theValue;

private:
  QString  theTag,theName;
     bool  grabIt,isValue,grabValue,checkName;
};

#endif // SIMPLEHANDLER_H
